package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
     User findByUsername(String username);

    PageResult QueryPage(Integer currentPage,Integer pageSize,String queryString) throws Exception;
    void add(User user,Integer[] checkitemIds);

    List<Object> getMenu(String user);

    User findById(Integer id);

    void delete(Integer id);
    void edit(User user,Integer[] roleIds);

    List<Integer>findRoleIdsByUserId(Integer id);
}
